package com.yonghong.groupreport.service.impl;

import com.yonghong.groupreport.domain.PaOrganize;
import com.yonghong.groupreport.mapper.PaOrganizeMapper;
import com.yonghong.groupreport.service.IPaOrganizeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 组织信息Service业务层处理
 *
 * @author yh
 * @date 2023-12-29
 */
@Service
public class PaOrganizeServiceImpl implements IPaOrganizeService {
    @Autowired
    private PaOrganizeMapper paOrganizeMapper;
    /**
     * 新增组织信息
     *
     * @param paOrganize 组织信息
     * @return 结果
     */
    @Override
    public int insertPaOrganize(PaOrganize paOrganize)
    {

        return paOrganizeMapper.insertPaOrganize(paOrganize);
    }

    /**
     * 修改组织信息
     *
     * @param paOrganize 组织信息
     * @return 结果
     */
    @Override
    public int updatePaOrganize(PaOrganize paOrganize)
    {

        return paOrganizeMapper.updatePaOrganize(paOrganize);
    }

    /**
     * 批量删除组织信息
     *
     * @param orgIds 需要删除的组织信息主键
     * @return 结果
     */
    @Override
    public int deletePaOrganizeByOrgIds(Long[] orgIds)
    {
        return paOrganizeMapper.deletePaOrganizeByOrgIds(orgIds);
    }

    /**
     * 删除组织信息信息
     *
     * @param orgId 组织信息主键
     * @return 结果
     */
    @Override
    public int deletePaOrganizeByOrgId(Long orgId)
    {
        return paOrganizeMapper.deletePaOrganizeByOrgId(orgId);
    }

    @Override
    public String selectOrgAccId(Long orgId) {
        return paOrganizeMapper.selectOrgAccId(orgId);
    }
}
